#ifndef CDECL_H
#define CDECL_H
#include <complex.h>
#include <stdint.h>
#include <math.h>
#include <stdlib.h>
typedef uint8_t boolean;
#define TRUE 0xff
#define FALSE 0x00

#define copyvec(to,from) to[0] = from[0]; to[1] = from[1]; to[2] = from[2]; // Copies \mathbb{R}^3 vector

enum field_EH {
	FIELD_E, FIELD_H
};

// Scalar conjunction
#define sc(zeta,eta) (zeta[0]*eta[0] + zeta[1]*eta[1] + zeta[2]*eta[2])

// To avoid manualy redefining array size after {...} constant array initialization
#define array_length(a) (sizeof(a) / sizeof(a[0]))



#endif
